package demo0529;

public class Main {
    public static void main(String[] args) {
        TestMap map = new TestMap();
        map.addEmployee(new Emp(1, "小红"));
        map.addEmployee(new Emp(2, "小明"));
        map.addEmployee(new Emp(3, "小李"));


        System.out.println("\n查询员工ID=2: " + map.getEmployee(2));

        map.updateEmployee(2, "小白");
        System.out.println("修改后查询员工 ID=10086: " + map.getEmployee(10086));


        map.deleteEmployee(3);
        map.displayAllEmployees();
    }
}
